package com.reborn.mall.api.controller;

import com.reborn.mall.api.model.vo.WelcomeInfoVO;
import com.reborn.mall.api.service.WelcomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 欢迎页Controller
 *
 * @author Reborn
 * @since 2020/4/10
 */
@RestController
public class WelcomeController {

    @Autowired
    private WelcomeService welcomeService;

    @GetMapping("/welcome")
    public WelcomeInfoVO welcome() {
        return welcomeService.data();
    }
}
